package com.aos.erp.message.model;

import com.aos.erp.message.enums.DelStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("消息服务配置")
@TableName("t_message_config")
public class MessageConfigInfo implements Serializable {

    @ApiModelProperty(value="配置ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private long id = 0;
    @ApiModelProperty(value="配置项Key",hidden=true)
    @TableField("mc_key")
    private String mcKey = ""; // 配置项key
    @ApiModelProperty(value="配置项值",hidden=true)
    @TableField("mc_value")
    private String mcValue = ""; // 配置项值
    @ApiModelProperty(value = "是否删除：del_no为未删除；del_yes为已删除",hidden=true)
    @TableField("is_del")
    private DelStatus isDel = DelStatus.del_no;
    @ApiModelProperty(value="创建人",hidden=true)
    @TableField("create_user")
    private String createUser = ""; // 创建人
    @ApiModelProperty(value="创建时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;    //创建时间
    @ApiModelProperty(value="修改人",hidden=true)
    @TableField("update_user")
    private String updateUser = ""; // 修改人
    @ApiModelProperty(value="修改时间",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;    //修改时间

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMcKey() {
        return mcKey;
    }

    public void setMcKey(String mcKey) {
        this.mcKey = mcKey;
    }

    public String getMcValue() {
        return mcValue;
    }

    public void setMcValue(String mcValue) {
        this.mcValue = mcValue;
    }

    public DelStatus getIsDel() {
        return isDel;
    }

    public void setIsDel(DelStatus isDel) {
        this.isDel = isDel;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
